function qupengyou(){
	// 显示loading
	$('#pengyoulist').html('loading....');
	var loc='en_US';
	var sex='all';
	$('#male,#female').each(function(){
		if($(this).is(':checked')){
			sex=$(this).attr('id');
			}
	});
	$.getJSON('http://ennea-findfriends.appspot.com/api/query?jsonpcb=?',{
		loc:($("#locale").val()),
		sex:sex
	},function(d){
		// 取到数据
		$('#pengyoulist').html('');
		$(d.d).each(function(){
			$('#pengyoulist').html($('#pengyoulist').html() + '<li><div><a href=#@ uid="' + this.uid +'" pic="' + this.pic + '" class=pengyou><p><img src=' + this.pic + '></img></p><p><span>' + this.nam + '</span></p><a>');
			$(".pengyou").click(function(){
				$("#pengyoubig").html('<img src=http://graph.facebook.com/' + $(this).attr('uid') +'/picture?type=normal />')
			});
		});
		})
	}
$(document).ready(function(){
	qupengyou();
})